package xyz.xiezc.spider.control;

import java.util.concurrent.Executor;

/**
 * @author wb-xzc291800
 * @date 2019/04/02 17:41
 */
public interface Schedule {

    Schedule addCommonHeader(String key, String value);

    /**
     * 添加种子爬虫
     *
     * @param urls
     */
    Schedule addSeedUrls(String... urls);

    /**
     * 爬虫开始方法
     *
     * @throws Exception
     */
    Schedule startHttp(int port, Executor executor);

    /**
     * 开启爬虫
     *
     * @return
     */
    Schedule startSpider();


}
